POP3SecureSocket Class

Used to retrieve messages on a POP3 mail server using SSL or TLS encryption.

Events

ConnectionEstablished

MessageReceived

Disconnected

RollbackSuccessful

ListReceived

ServerAvailable

LoginSuccessful

ServerError

MessageCount

TopLinesReceived

MessageDeleted

 

Properties

EncryptPassword

Password

Username


Methods

CheckServerConnection

ListMessages

Connect

RetrieveLines

CountMessages

RetrieveMessage

DeleteMessage

RollbackServer

DisconnectFromServer

SendServerCommand


More information available in parent classes: SSLSocket:TCPSocket:SocketCore:Object


Notes

The POP3SecureSocket class is identical to the POP3Socket class, except that it is derived from the SSLSocket class instead of the TCPSocket class. This enables you to send secure email by setting the Secure property of the SSLSocket class.

If you use a constructor of a subclass of POP3SecureSocket, you must call the Super class's constructor in your subclass's constructor. The subclass will not work unless this is done.


Example

The following code in the MessageReceived event handler places the body of an email message in an EditField.

Sub MessageReceived(ID as Integer, email as EmailMessage)
  Dim s as String
 s=email.bodyHTML
 If s="" then
  s=email.bodyPlainText
 end
EditField1.text=s

See Also

EmailMessage, HTTPSocket, POP3Socket, SMTPSecureSocket, SMTPSocket, SSLSocket, SocketCore, TCPSocket classes.